<%@ page language="java" contentType="text/html; charset=UTF-8"	 pageEncoding="UTF-8"%>
<%@ include file="../include/laypublic.jsp"%>
<!DOCTYPE html>
<html>
<head>
  <title>承继协议原合同复制</title>
</head>
<style>
#contract-breakdown {
	cursor: pointer;
}

#contract-investment-info .layui-inline .layui-form-label {
	position: relative;
	text-align: left;
}

#contract-investment-info .layui-inline:nth-child(1) .layui-form-label {
	left: 160px;
}

#contract-investment-info .layui-inline:nth-child(2) .layui-form-label {
	left: 120px;
}

#contract-investment-info .layui-inline:nth-child(3) .layui-form-label {
	left: 115px;
}

.margin-lt10 {
	margin-left: 10px;
}

.layui-row+.layui-row {
	margin-top: 36px;
}

.tg-l {
	text-align: left;
}

.tg-c {
	text-align: center;
}

.tg-r {
	text-align: right;
}

.contract-list {
	margin-top: 20px;
}

.contract-box {
	width: 100%;
	min-height: 100px;
}

.contract-money {
	width: 90%;
	margin: 0 auto;
}

.contract-money .layui-table {
	margin: 0;
}

.contract-money th {
	text-align: center;
	height: 38px;
}

.contract-money .label {
	display: block;
	width: 45px !important;
	text-align: left;
	margin-left: 15px;
}

.fieldset {
	margin-top: 5px;
	margin-bottom: 0px
}

.layui-legend {
	background-color: #5fb878;
	font-size: 15px !important;
	width: 140px;
}

.layui-form-item {
	margin-bottom: 5px;
	clear: both;
	*zoom: 1;
}

.layui-form-label {
	width: 160px;
}

</style>
<body>
	<div class="layui-fluid">
		<div class="layui-card">
			<div style="padding-top: 15px;">&nbsp;</div>
			<form class="layui-form" id="addInfo_form" lay-filter="addInfo_form">
				<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
					<ul class="layui-tab-title">
						<li lay-id="0" class="layui-this"><B>承继协议</B></li>
						<li lay-id="1"><B>合同清单</B></li>
					</ul>
					<div class="layui-tab-content">
						<div class="layui-tab-item layui-show">
							<fieldset class="layui-elem-field layui-field-title fieldset"
								id="baseInfo">
								<legend class="layui-btn layui-legend"
									style="text-align: left; cursor: default;">项目基础信息></legend>
								<input type="hidden" name="judge" value="1">
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">申请公司</label>
										<div class="layui-input-inline">
											<input type="hidden" name="hrOrgid" value="${bindOrgId}">
											<input type="text" value="${bindOrgName}"
												style="border: 0px;width:220px" readonly="readonly" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">申请部门</label>
										<div class="layui-input-inline">
											<input type="hidden" name="hrDeptid" value="${bindDeptId}">
											<input type="text" value="${bindDeptName}"
												style="border: 0px;" readonly="readonly" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">申请人</label>
										<div class="layui-input-inline">
											<input type="hidden" name="hrStaffApplyid"
												value="${SESSION_KEY_USER_DETAIL.hrStaffId }"> <input
												type="text" name="staffname" value="${contractExt.staffName }"
												readonly="readonly" style="border: 0px" autocomplete="off"
												class="layui-input">
										</div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">项目名称</label>
										<div class="layui-input-inline">
											<div class="layui-input-inline">
												<input type="text" id="add_select_proId" name="proName" value="${contractExt.proName}" maxlength="100" style="border: 0px;width:280px" readonly="readonly" class="layui-input">
											</div>
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">项目编号</label>
										<div class="layui-input-inline">
											<input type="hidden" id="id_code" name="proCodeAndCodes" value ="${contractExt.proCode}_${contractExt.id}">
											<input type="text" name="proCode" value="${contractExt.proCode}" style="border: 0px;" readonly="readonly" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">区域公司</label>
										<div class="layui-input-inline">
											<input type="hidden" name="hrOrgAreaId" value="${contractExt.hrOrgAreaId}">
											<input type="text" name="orgAreaName" value="${contractExt.orgAreaName}" style="border: 0px;width:220px" readonly="readonly" class="layui-input">
										</div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">项目公司</label>
										<div class="layui-input-inline">
											<input type="hidden" name="hrOrgProId"  value="${contractExt.hrOrgProId}">
											<input type="text" name="orgProName" value="${contractExt.orgProName}" style="border: 0px;width:280px" readonly="readonly" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">实施机构</label>
										<div class="layui-input-inline">
											<input type="text" name="carryOrg" value="${contractExt.carryOrg}" style="border: 0px;width:280px" readonly="readonly" class="layui-input">
										</div>
									</div>

									<div class="layui-inline">
										<label class="layui-form-label">项目地址</label>
										<div class="layui-input-inline">
											<input type="hidden" name="sgCityId" value="${contractExt.sgCityId}">
											<input type="text" name="sgCityName" value="${contractExt.sgCityName}" style="border: 0px;" readonly="readonly" class="layui-input">
										</div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">项目负责人</label>
										<div class="layui-input-inline">
											<input type="text" name="proLeader" value="${contractExt.proLeader}"
												lay-verify="required|COC" style="border: 0px;" readonly="readonly" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">承继协议名称</label>
										<div class="layui-input-inline">
											<input type="text" name="contractExtName" value="${contractExt.contractExtName}"
												maxlength="100" lay-verify="required|COC"
												autocomplete="off" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">承继协议编码（选填）</label>
										<div class="layui-input-inline">
											<input type="text" name="contractExtCode" value="${contractExt.contractExtCode}"
												maxlength="50" autocomplete="off" class="layui-input">
										</div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label" >承继协议签订日期（选填）</label>
										<div class="layui-input-inline">
											<input type="text" class="layui-input" id="id_successionAgreementDate" name="signDate" readonly
												value="<fmt:formatDate value="${contractExt.signDate }" pattern="yyyy-MM-dd"/>" autocomplete="off">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" >是否与项目合同信息一致</label>
										<div class="layui-input-inline">
											<select id="is-it-consistent" lay-filter="is-it-consistent" lay-verify="required">
								      			<option value="1" selected>是</option>
								      			<option value="2" >否</option>
											</select>
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">计价方式</label>
										<div class="layui-input-inline">
											<select id="add_from-bisModify" name="valueMode" lay-verify="required">
								      			<option value="">请选择-计价方式</option>
								      			<option value="1" <c:if test="${contractExt.valueMode == '1'}">selected</c:if>>清单</option>
								      			<option value="2" <c:if test="${contractExt.valueMode == '2'}">selected</c:if>>定额</option>
												<option value="3" <c:if test="${contractExt.valueMode == '3'}">selected</c:if>>固定总价</option>
								      			<option value="4" <c:if test="${contractExt.valueMode == '4'}">selected</c:if>>其它</option>
											</select>
										</div>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">调价方式</label>
									<div class="layui-input-block">
										<textarea id="id_priceAdjustmentMethod" name="riseMode" class="layui-textarea" 
										maxlength="500" lay-verify="required" style="width:899px; height:90px;" >${contractExt.riseMode}</textarea>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">业态</label>
										<div class="layui-input-inline">
											<select id="id_format" name="bizType" lay-verify="required">
								      			<option value="">请选择-业态</option>
								      			<option value="1" <c:if test="${contractExt.bizType == '1'}">selected</c:if>>公路</option>
								      			<option value="2" <c:if test="${contractExt.bizType == '2'}">selected</c:if>>市政</option>
												<option value="3" <c:if test="${contractExt.bizType == '3'}">selected</c:if>>铁路</option>
								      			<option value="4" <c:if test="${contractExt.bizType == '4'}">selected</c:if>>房建</option>
								      			<option value="5" <c:if test="${contractExt.bizType == '5'}">selected</c:if>>棚改</option>
								      			<option value="6" <c:if test="${contractExt.bizType == '6'}">selected</c:if>>学校</option>
												<option value="7" <c:if test="${contractExt.bizType == '7'}">selected</c:if>>综合</option>
								      			<option value="8" <c:if test="${contractExt.bizType == '8'}">selected</c:if>>医疗及养老</option>
								      			<option value="9" <c:if test="${contractExt.bizType == '9'}">selected</c:if>>土地増减挂钩</option>
											</select>
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">是否入库</label>
										<div class="layui-input-inline">
											<select id="id_is_in_store" name="isInStore" lay-verify="required">
								      			<option value="">请选择-入库情况</option>
								      			<option value="0" <c:if test="${contractExt.isInStore == '0'}">selected</c:if>>未入库</option>
								      			<option value="1" <c:if test="${contractExt.isInStore == '1'}">selected</c:if>>已入库</option>
											</select>
										</div>
									</div>

									<div class="layui-inline">
										<label class="layui-form-label">回报机制</label>
										<input type="hidden" id="id_backMech" name="backMech" value="${contractExt.backMech }">
							      		<div class="layui-input-inline">
								      		<input type="checkbox" name="backMechName" <c:if test="${fn:contains(contractExt.backMech, '1')}" >checked</c:if> value="1" disabled="disabled" title="政府付费" lay-skin="primary">
							      		</div>
							      		<div class="layui-input-inline">
											<input type="checkbox" name="backMechName" <c:if test="${fn:contains(contractExt.backMech, '2')}" >checked</c:if> value="2" disabled="disabled" title="可行性缺口补助" lay-skin="primary"> 
							      		</div>
							      		<div class="layui-input-inline">
											<input type="checkbox" name="backMechName" <c:if test="${fn:contains(contractExt.backMech, '3')}" >checked</c:if> value="3" disabled="disabled" title="使用者付费" lay-skin="primary"> 
							      		</div>
							      		<div class="layui-input-inline">
											<input type="checkbox" name="backMechName" <c:if test="${fn:contains(contractExt.backMech, '4')}" >checked</c:if> value="4" disabled="disabled" title="其他" lay-skin="primary"> 
							      		</div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">合同建设期（年）</label>
										<div class="layui-input-inline">
											<input type="text" id="id_Contractconstructionperiodyear" name="buildYears"
												onblur="checkValueverifyNumber2(this);" lay-verify="required|floatNumber" maxlength="100"
												value="${contractExt.buildYears}" autocomplete="off" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">合同运营期（年）</label>
										<div class="layui-input-inline">										
											<input type="text" id="id_Contractoperationperiodyear" name="omYears"
												onblur="checkValueverifyNumber2(this);" maxlength="100" lay-verify="required|floatNumber"
												value="${contractExt.omYears}" autocomplete="off" class="layui-input">
										</div>
									</div>

									<div class="layui-inline">
										<label class="layui-form-label">总合同期（年）</label>
										<div class="layui-input-inline">
											<input type="text" id="id_Totalcontractperiodyear" name="totalYears"
												onblur="checkValueverifyNumber2(this);" maxlength="100" lay-verify="required|floatNumber"
												value="${contractExt.totalYears}" autocomplete="off" class="layui-input">
										</div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">合同建设期（天）</label>
										<div class="layui-input-inline">
											<input type="text" id="id_Contractconstructionperioddays" name="buildDays"
												readonly="readonly" maxlength="100" lay-verify="required|COC"
												value="${contractExt.buildDays}" style="border: 0px;" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">合同运营期（天）</label>
										<div class="layui-input-inline">
											<input type="text" id="id_Contractoperationperioddays" name="omDays"
												readonly="readonly" maxlength="100" lay-verify="required|COC"
												value="${contractExt.omDays}" style="border: 0px;" class="layui-input">
										</div>
									</div>

									<div class="layui-inline">
										<label class="layui-form-label">总合同期（天）</label>
										<div class="layui-input-inline">
											<input type="text" id="id_Totalcontractperioddays" name="totalDays"
												readonly="readonly" maxlength="100" lay-verify="required|COC"
												value="${contractExt.totalDays}" style="border: 0px;" class="layui-input">
										</div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">合同开工日期</label>
										<div class="layui-input-inline">
											<input type="text" class="layui-input" id="id_contractCommencementDate"
												name="beginBuildDate" readonly lay-verify="required"
												value="<fmt:formatDate value="${contractExt.beginBuildDate }" pattern="yyyy-MM-dd"/>" autocomplete="off">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">建安竣工日期</label>
										<div class="layui-input-inline">
											<input type="text" class="layui-input" id="id_completionDateOfConstructionAndinstallation"
												name="endCaeDate" readonly lay-verify="required"
												value="<fmt:formatDate value="${contractExt.endCaeDate }" pattern="yyyy-MM-dd"/>" autocomplete="off">
										</div>
									</div>

									<div class="layui-inline">
										<label class="layui-form-label">运营结束日期</label>
										<div class="layui-input-inline">
											<input type="text" class="layui-input" lay-verify="required"
												id="id_operationEndDate" name="endOmDate" readonly
												value="<fmt:formatDate value="${contractExt.endOmDate }" pattern="yyyy-MM-dd"/>" autocomplete="off">
										</div>
									</div>
								</div>
							</fieldset>
							<fieldset class="layui-elem-field layui-field-title fieldset"
								id="baseInfo">
								<legend class="layui-btn layui-legend"
									style="text-align: left; cursor: default;">合同投资信息></legend>
								<!-- 按钮区域  -->

<!-- 								<div class="layui-form-item" >
									<div class="layui-inline" style="float:right" >
										<label class="layui-form-label" id="contract-breakdown" style="color:#01AAED;" >编辑合同分解清单></label>
										<div class="layui-input-inline">
											<input type="text" name="showInx" value="" readonly="readonly" style="border: 0px" class="layui-input">
										</div>
									</div>
								</div> -->
								
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">序号</label>
										<div class="layui-input-inline">
											<input type="text" name="showInx" value=""
												readonly="readonly" style="border: 0px" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">费用名称</label>
										<div class="layui-input-inline">
											<input type="text" name="showInx" value=""
												readonly="readonly" style="border: 0px" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">金额（元）</label>
										<div class="layui-input-inline">
											<input type="text" name="showInx" value=""
												readonly="readonly" style="border: 0px" class="layui-input">
										</div>
									</div>
								</div>
								<div class="layui-form-item">
									<!-- 灰色分割线 -->
									<!-- 	<hr class="layui-bg-gray">-->
								</div>
							</fieldset>
							
							<fieldset class="layui-elem-field layui-field-title fieldset" id="contract-investment-info" >
								<div class="layui-form-item" >
									<div class="layui-inline" >
										<label class="layui-form-label">1</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">建安工程费</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="caeFeeLabel">${contractExt.contractExtInvest.caeFee }</label>
										<div class="layui-input-inline" ><input type="hidden" id="caeFeeId" name="caeFee" value="${contractExt.contractExtInvest.caeFee }" /></div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label"></label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label " style="left:130px;" >*建安下浮率（综合）</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="caeDownRateLabel">${contractExt.contractExtInvest.caeDownRate }%</label>
										<div class="layui-input-inline" ><input type="hidden" id="caeDownRateId" name="caeDownRate" value="${contractExt.contractExtInvest.caeDownRate }" /></div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label"></label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" style="left:130px;"  >*建安占比</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="caeRateLabel">${contractExt.contractExtInvest.caeRate }%</label>
										<div class="layui-input-inline"><input type="hidden" id="caeRateId" name="caeRate" value="${contractExt.contractExtInvest.caeRate }" /></div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">2</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">预备费</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="prepareFeeLabel">${contractExt.contractExtInvest.prepareFee }</label>
										<div class="layui-input-inline" ><input type="hidden" id="prepareFeeId" name="prepareFee" value="${contractExt.contractExtInvest.prepareFee }" /></div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">3</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">建安工程其他费</label>
										<div class="layui-input-inline" ></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="buildOtherFeeLabel">${contractExt.contractExtInvest.buildOtherFee }</label>
										<div class="layui-input-inline" ><input type="hidden" id="buildOtherFeeId" name="buildOtherFee" value="${contractExt.contractExtInvest.buildOtherFee }" /></div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">3.1</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">建设单位管理费</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="buildOrgFeeLabel">${contractExt.contractExtInvest.buildOrgFee }</label>
										<div class="layui-input-inline" ><input type="hidden" id="buildOrgFeeId" name="buildOrgFee" value="${contractExt.contractExtInvest.buildOrgFee }" /></div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">3.2</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">政府代付费</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="gdReplaceFeeLabel">${contractExt.contractExtInvest.gdReplaceFee }</label>
										<div class="layui-input-inline"><input type="hidden" id="gdReplaceFeeId" name="gdReplaceFee" value="${contractExt.contractExtInvest.gdReplaceFee }" /></div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">3.3</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">项目前期费</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="preFeeLabel">${contractExt.contractExtInvest.preFee }</label>
										<div class="layui-input-inline"><input type="hidden" id="preFeeId" name="preFee" value="${contractExt.contractExtInvest.preFee }" /></div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">3.3.1</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">征地拆迁费</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="moveFeeLabel">${contractExt.contractExtInvest.moveFee }</label>
										<div class="layui-input-inline"><input type="hidden" id="moveFeeId" name="moveFee" value="${contractExt.contractExtInvest.moveFee }" /></div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">4</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">建设期利息</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="buildInterestLabel">${contractExt.contractExtInvest.buildInterest }</label>
										<div class="layui-input-inline"><input type="hidden" id="buildInterestId" name="buildInterest" value="${contractExt.contractExtInvest.buildInterest }" /></div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">5</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">设备及工器具购置</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="buyFeeLabel">${contractExt.contractExtInvest.buyFee }</label>
										<div class="layui-input-inline"><input type="hidden" id="buyFeeId" name="buyFee" value="${contractExt.contractExtInvest.buyFee }" /></div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">6</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">铺底流动资金</label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="flowFeeLabel">${contractExt.contractExtInvest.flowFee }</label>
										<div class="layui-input-inline"><input type="hidden" id="flowFeeId" name="flowFee" value="${contractExt.contractExtInvest.flowFee }" /></div>
									</div>
								</div>
								<div class="layui-form-item">
									<hr class="layui-bg-gray">
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label"></label>
										<div class="layui-input-inline"></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">投资合计</label>
										<div class="layui-input-inline" ></div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" id="totalSumLabel">${contractExt.contractExtInvest.totalSum }</label>
										<div class="layui-input-inline" ><input type="hidden"  id="totalSumId" name="totalSum" value="${contractExt.contractExtInvest.totalSum }"  />
										<input type="hidden"  id="outPreDownAmountId" name="outPreDownAmount" value="${contractExt.contractExtInvest.outPreDownAmount }"  />
										<input type="hidden"  id="outPreDownRateId" name="outPreDownRate" value="${contractExt.contractExtInvest.outPreDownRate }"  />
										<input type="hidden"  id="outAfterDownAmountId" name="outAfterDownAmount" value="${contractExt.contractExtInvest.outAfterDownAmount }"  />
										</div>
									</div>
								</div>
							</fieldset>
										
							<fieldset class="layui-elem-field layui-field-title fieldset"
								id="baseInfo">
								<legend class="layui-btn layui-legend"
									style="text-align: left; cursor: default;">商务指标></legend>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">银行融资资金（元）</label>
										<div class="layui-input-inline">
											<input type="text" id="bankFundId" name="bankFund" value="${contractExt.bankFund}"
												maxlength="20" lay-verify="required|floatNumber" autocomplete="off"
												onblur="isNumberAndFloat3();arabiaToCN(this,1);" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">银行融资资金占比（%）</label>
										<div class="layui-input-inline">
											<input type="text" id="bankFundPercentId" name="bankFundPercent" value="${contractExt.bankFundPercent}"
												maxlength="20" lay-verify="required|floatNumber" autocomplete="off"
												style="border: 0px;" readonly class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">自有资本金（元）</label>
										<div class="layui-input-inline">
											<input type="text" id="selfFundId" name="selfFund" value="${contractExt.selfFund}"
												maxlength="20" lay-verify="required|floatNumber" autocomplete="off"
												onblur="isNumberAndFloat3();arabiaToCN(this,1);" class="layui-input">
										</div>
									</div>

								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">自有资本金占比（%）</label>
										<div class="layui-input-inline">
											<input type="text" id="selfFundPercentId" name="selfFundPercent" value="${contractExt.selfFundPercent}"
												maxlength="20" lay-verify="required|floatNumber" autocomplete="off"
												style="border: 0px;" readonly class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">政府资本金（元）</label>
										<div class="layui-input-inline">
											<input type="text" id="gdFundId" name="gdFund" value="${contractExt.gdFund}"
												maxlength="20" lay-verify="required|floatNumber" autocomplete="off"
												onblur="isNumberAndFloat3();arabiaToCN(this,1);" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">政府资本金占比（%）</label>
										<div class="layui-input-inline">
											<input type="text" id="gdFundPercentId" name="gdFundPercent" value="${contractExt.gdFundPercent}"
												maxlength="20" lay-verify="required|floatNumber" autocomplete="off"
												style="border: 0px;" readonly class="layui-input">
										</div>
									</div>

								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">自有资本金回报率（%）</label>
										<div class="layui-input-inline">
											<input type="text" id="selfBackRateId" name="selfBackRate"
												value="${contractExt.selfBackRate}" maxlength="20"
												lay-verify="required|floatNumber" autocomplete="off"
												onblur="isNumberAndFloat1(this);" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">建设期融资利率（%）</label>
										<div class="layui-input-inline">
											<input type="text" id="buildCapRateId" name="buildCapRate"
												value="${contractExt.buildCapRate}" maxlength="20"
												lay-verify="required|floatNumber" autocomplete="off"
												onblur="isNumberAndFloat1(this);" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">银行融资回报率（%）</label>
										<div class="layui-input-inline">
											<input type="text" id="bankBackRateId" name="bankBackRate"
												value="${contractExt.bankBackRate}" maxlength="20"
												lay-verify="required|floatNumber" autocomplete="off"
												onblur="isNumberAndFloat1(this);" class="layui-input">
										</div>
									</div>

								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">年运营绩效服务费（元）</label>
										<div class="layui-input-inline">
											<input type="text" id="perOmFeeId" name="perOmFee"
												value="${contractExt.perOmFee}" maxlength="20"
												lay-verify="required|floatNumber" autocomplete="off"
												onblur="isNumberAndFloat1(this);arabiaToCN(this,1);" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">折现率（%）</label>
										<div class="layui-input-inline">
											<input type="text" id="cashRateId" name="cashRate" value="${contractExt.cashRate}"
												maxlength="20" lay-verify="required|floatNumber" autocomplete="off"
												onblur="isNumberAndFloat1(this);" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">投资回报率（%）</label>
										<div class="layui-input-inline">
											<input type="text" id="investBackRateId" name="investBackRate" value="${contractExt.investBackRate}"
												maxlength="20" lay-verify="required|floatNumber" autocomplete="off"
												onblur="isNumberAndFloat1(this);" class="layui-input">
										</div>
									</div>

								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">年兜底运营收入（元）</label>
										<div class="layui-input-inline">
											<input type="text" id="perBottomOmIncomeId" name="perBottomOmIncome" value="${contractExt.perBottomOmIncome}"
												maxlength="20" lay-verify="required|floatNumber" autocomplete="off"
												onblur="isNumberAndFloat1(this);arabiaToCN(this,1);" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">年兜底运营成本（元）</label>
										<div class="layui-input-inline">
											<input type="text" id="perBottomOmCostId" name="perBottomOmCost"
												value="${contractExt.perBottomOmCost}" maxlength="20"
												lay-verify="required|floatNumber" autocomplete="off"
												onblur="isNumberAndFloat1(this);arabiaToCN(this,1);" class="layui-input">
										</div>
									</div>

								</div>

							</fieldset>
							<fieldset class="layui-elem-field layui-field-title fieldset"
								id="baseInfo">
								<legend class="layui-btn layui-legend"
									style="text-align: left; cursor: default;">公式信息></legend>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">名称</label>
										<div class="layui-input-inline">
											<input type="text" name="formulaType" value=""
												readonly="readonly" style="border: 0px" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" style="width:155px;">计算公式说明</label>
										<div class="layui-input-inline" style="width:150px;">
											<input type="text" name="formulaMemo" value=""
												readonly="readonly" style="border: 0px" class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" style="width:140px;">参数详细说明</label>
										<div class="layui-input-inline" style="width:50px;">
											<input type="text" name="paraMemo" value=""
												readonly="readonly" style="border: 0px" class="layui-input">
										</div>
									</div>
								</div>
								<div class="layui-form-item">
									<!-- 灰色分割线 -->
									<hr class="layui-bg-gray">
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">可用性服务费</label>
										<div class="layui-input-inline">
											<input type="hidden" name="formulaTypes" value="1"/>
										</div>
									</div>
									<c:forEach items="${contractExt.contractExtUlas }" var="contractUla">
									<c:if test="${contractUla.formulaType == '1' }">
									<div class="layui-inline">
										<label class="layui-form-label" style="width:50px;"></label>
										<div class="layui-input-inline">
											<textarea name="formulaMemos" class="layui-textarea" maxlength="250"  autocomplete="off"
												lay-verify="required" style="width: 200px; min-height: 20px;">${contractUla.formulaMemo}</textarea>
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" style="width:100px;"></label>
										<div class="layui-input-inline" style="width:150px;">
											<textarea name="paraMemos" class="layui-textarea" maxlength="250"  autocomplete="off"
												lay-verify="required" style="width: 200px; min-height: 20px;">${contractUla.paraMemo}</textarea>
										</div>
									</div>
									</c:if>
									</c:forEach>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">政策处理费</label>
										<div class="layui-input-inline">
											<input type="hidden" name="formulaTypes" value="2"/>
										</div>
									</div>
									<c:forEach items="${contractExt.contractExtUlas }" var="contractUla">
									<c:if test="${contractUla.formulaType == '2' }">
									<div class="layui-inline">
										<label class="layui-form-label" style="width:50px;"></label>
										<div class="layui-input-inline">
											<textarea name="formulaMemos" class="layui-textarea" maxlength="250"  autocomplete="off"
												lay-verify="required" style="width: 200px; min-height: 20px;">${contractUla.formulaMemo}</textarea>
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" style="width:100px;"></label>
										<div class="layui-input-inline" style="width:150px;">
											<textarea name="paraMemos" class="layui-textarea" maxlength="250"  autocomplete="off"
												lay-verify="required" style="width: 200px; min-height: 20px;">${contractUla.paraMemo}</textarea>
										</div>
									</div>
									</c:if>
									</c:forEach>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">使用者服务费</label>
										<div class="layui-input-inline">
											<input type="hidden" name="formulaTypes" value="3"/>
										</div>
									</div>
									<c:forEach items="${contractExt.contractExtUlas }" var="contractUla">
									<c:if test="${contractUla.formulaType == '3' }">
									<div class="layui-inline">
										<label class="layui-form-label" style="width:50px;"></label>
										<div class="layui-input-inline">
											<textarea name="formulaMemos" class="layui-textarea" maxlength="250"  autocomplete="off"
												lay-verify="required" style="width: 200px; min-height: 20px;">${contractUla.formulaMemo}</textarea>
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" style="width:100px;"></label>
										<div class="layui-input-inline" style="width:150px;">
											<textarea name="paraMemos" class="layui-textarea" maxlength="250"  autocomplete="off"
												lay-verify="required" style="width: 200px; min-height: 20px;">${contractUla.paraMemo}</textarea>
										</div>
									</div>
									</c:if>
									</c:forEach>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">可行性缺口补助（选填）</label>
										<div class="layui-input-inline">
											<input type="hidden" name="formulaTypes" value="4"/>
										</div>
									</div>
									<c:forEach items="${contractExt.contractExtUlas }" var="contractUla">
									<c:if test="${contractUla.formulaType == '4' }">
									<div class="layui-inline">
										<label class="layui-form-label" style="width:50px;"></label>
										<div class="layui-input-inline">
											<textarea name="formulaMemos" class="layui-textarea" maxlength="250"  autocomplete="off"
												style="width: 200px; min-height: 20px;">${contractUla.formulaMemo}</textarea>
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" style="width:100px;"></label>
										<div class="layui-input-inline" style="width:150px;">
											<textarea name="paraMemos" class="layui-textarea" maxlength="250"  autocomplete="off"
												style="width: 200px; min-height: 20px;">${contractUla.paraMemo}</textarea>
										</div>
									</div>
									</c:if>
									</c:forEach>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">运营维护费（选填）</label>
										<div class="layui-input-inline">
											<input type="hidden" name="formulaTypes" value="5"/>
										</div>
									</div>
									<c:forEach items="${contractExt.contractExtUlas }" var="contractUla">
									<c:if test="${contractUla.formulaType == '5' }">
									<div class="layui-inline">
										<label class="layui-form-label" style="width:50px;"></label>
										<div class="layui-input-inline">
											<textarea name="formulaMemos" class="layui-textarea" maxlength="250"  autocomplete="off"
												style="width: 200px; min-height: 20px;">${contractUla.formulaMemo}</textarea>
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" style="width:100px;"></label>
										<div class="layui-input-inline" style="width:150px;">
											<textarea name="paraMemos" class="layui-textarea" maxlength="250"  autocomplete="off"
												style="width: 200px; min-height: 20px;">${contractUla.paraMemo}</textarea>
										</div>
									</div>
									</c:if>
									</c:forEach>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">一次性支付</label>
										<div class="layui-input-inline">
											<input type="hidden" name="formulaTypes" value="6"/>
										</div>
									</div>
									<c:forEach items="${contractExt.contractExtUlas }" var="contractUla">
									<c:if test="${contractUla.formulaType == '6' }">
									<div class="layui-inline">
										<label class="layui-form-label" style="width:50px;"></label>
										<div class="layui-input-inline">
											<textarea name="formulaMemos" class="layui-textarea" maxlength="250"  autocomplete="off"
												lay-verify="required" style="width: 200px; min-height: 20px;">${contractUla.formulaMemo}</textarea>
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label" style="width:100px;"></label>
										<div class="layui-input-inline" style="width:150px;">
											<textarea name="paraMemos" class="layui-textarea" maxlength="250"  autocomplete="off"
												lay-verify="required" style="width: 200px; min-height: 20px;">${contractUla.paraMemo}</textarea>
										</div>
									</div>
									</c:if>
									</c:forEach>
								</div>
							</fieldset>

							<fieldset class="layui-elem-field layui-field-title fieldset"
								id="otherInfo">
								<legend class="layui-btn layui-legend"
									style="text-align: left; cursor: default;">其他说明 ></legend>
								<div class="layui-form-item">
									<label class="layui-form-label" style="width: 150px;">建设期绩效考核说明</label>
									<div class="layui-input-block">
										<textarea id="buildKpiMemoId" name="buildKpiMemo" class="layui-textarea" maxlength="500"
											lay-verify="required" style="width: 899px; height: 90px;">${contractExt.buildKpiMemo}</textarea>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label" style="width: 150px;">运营期绩效考核说明</label>
									<div class="layui-input-block">
										<textarea id="omKipMemoId" name="omKipMemo" class="layui-textarea" maxlength="500"
											lay-verify="required" style="width: 899px; height: 90px;">${contractExt.omKipMemo}</textarea>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label" style="width: 150px;">主要调整内容描述（相对于招标文件、投标文件）</label>
									<div class="layui-input-block">
										<textarea id="mainMemoId" name="mainMemo" class="layui-textarea" maxlength="500"
											lay-verify="required" style="width: 899px; height: 90px;">${contractExt.mainMemo}</textarea>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label" style="width: 150px;">调整文字说明（选填）</label>
									<div class="layui-input-block">
										<textarea name="noteMemo" class="layui-textarea" maxlength="500"
											style="width: 899px; height: 90px;">${contractExt.noteMemo}</textarea>
									</div>
								</div>
							</fieldset>
							<fieldset class="layui-elem-field layui-field-title fieldset"
								id="baseInfo">
								<legend class="layui-btn layui-legend"
									style="text-align: left; cursor: default;">附件></legend>
								<div style="margin-top: 20px;">
									<div class="layui-form-item">
										<label class="layui-form-label" style="width: 350px;">支持pdf、excel、word、图片资料，可上传多个</label>
									</div>
									<div class="layui-form-item">
									    <label class="layui-form-label">Word版合同文本</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
								              	<button type="button" class="layui-btn" id="1-upload-more">上传</button>
						                		<div class="layui-upload-list" id="1-upload-more-list">
						                			<c:forEach items="${contractExt.contractExtAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '1' }">
								              				<div class="layui-upload-img-div" id="upload_img_${fileAtt.id }">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              						<a href="javascript:void(0)" onclick="del('${fileAtt.id}')">删除</a>
								              						<input type="hidden" value="${fileAtt.types}|${fileAtt.fileName}${fileAtt.fileSuffix }||${fileAtt.filePath }" id="fileAtt_${fileAtt.id}" name="fileAtts1" ></input>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
									<div class="layui-form-item">
									    <label class="layui-form-label">PDF版合同文本</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
								              	<button type="button" class="layui-btn" id="2-upload-more">上传</button>
						                		<div class="layui-upload-list" id="2-upload-more-list">
						                			<c:forEach items="${contractExt.contractExtAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '2' }">
								              				<div class="layui-upload-img-div" id="upload_img_${fileAtt.id }">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              						<a href="javascript:void(0)" onclick="del('${fileAtt.id}')">删除</a>
								              						<input type="hidden" value="${fileAtt.types}|${fileAtt.fileName}${fileAtt.fileSuffix }||${fileAtt.filePath }" id="fileAtt_${fileAtt.id}" name="fileAtts2" ></input>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
									<div class="layui-form-item">
									    <label class="layui-form-label">盖章版合同文本（选填）</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
								              	<button type="button" class="layui-btn" id="3-upload-more">上传</button>
						                		<div class="layui-upload-list" id="3-upload-more-list">
						                			<c:forEach items="${contractExt.contractExtAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '3' }">
								              				<div class="layui-upload-img-div" id="upload_img_${fileAtt.id }">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              						<a href="javascript:void(0)" onclick="del('${fileAtt.id}')">删除</a>
								              						<input type="hidden" value="${fileAtt.types}|${fileAtt.fileName}${fileAtt.fileSuffix }||${fileAtt.filePath }" id="fileAtt_${fileAtt.id}" name="fileAtts3" ></input>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
									<div class="layui-form-item">
									    <label class="layui-form-label">其他附件（选填）</label>
									    <div class="layui-input-block">
									    	<div class="layui-upload">
								              	<button type="button" class="layui-btn" id="4-upload-more">上传</button>
						                		<div class="layui-upload-list" id="4-upload-more-list">
						                			<c:forEach items="${contractExt.contractExtAtts }" var="fileAtt">
								              			<c:if test="${fileAtt.types == '4' }">
								              				<div class="layui-upload-img-div" id="upload_img_${fileAtt.id }">
								              					<c:choose>
									              					<c:when test="${fileAtt.fileSuffix == '.jpg' or fileAtt.fileSuffix == '.jpeg' or fileAtt.fileSuffix == '.png'}">
										              					<img src="${fileHttpPre }/${fileAtt.filePath }" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:when>
										              				<c:otherwise>
										              					<img src="${ctx}/resources/images/${fn:substring(fileAtt.fileSuffix,1,5)}.jpg" title="${fileAtt.fileName}" class="layui-upload-img">
										              				</c:otherwise>
								              					</c:choose>
								              					<div class="mask">
								              						<a href="javascript:void(0)" onclick="showImg('${fileHttpPre}/${fileAtt.filePath }');">查看</a>
								              						<a href="javascript:void(0)" onclick="del('${fileAtt.id}')">删除</a>
								              						<input type="hidden" value="${fileAtt.types}|${fileAtt.fileName}${fileAtt.fileSuffix }||${fileAtt.filePath }" id="fileAtt_${fileAtt.id}" name="fileAtts4" ></input>
								              					</div>
								              					<p>${fileAtt.fileName}</p>
								              				</div>
								              			</c:if>
								              		</c:forEach>
						                		</div>
								            </div>
									    </div>
								  	</div>
								</div>
							</fieldset>

						</div>
						<!-- 合同清单  -->
						<div class="layui-tab-item">
							<fieldset class="layui-elem-field layui-field-title fieldset">
								<legend class="layui-btn layui-legend" style="text-align: left; cursor: default;">基础信息></legend>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">项目名称</label>
										<div class="layui-input-inline">
											<input type="text" value="${contractExt.proName}"
												style="border: 0px;" readonly="readonly" class="layui-input" />
										</div>
									</div>		
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label">对外下浮前金额（元）</label>
										<div class="layui-input-inline">
											<input type="text"
												value="${contractExt.contractExtInvest.outPreDownAmount}"
												style="border: 0px;" readonly="readonly" class="layui-input" />
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">对外下浮率（%）</label>
										<div class="layui-input-inline">
											<input type="text"
												value="${contractExt.contractExtInvest.outPreDownRate}"
												style="border: 0px;" readonly="readonly" class="layui-input" />
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label">对外下浮后金额（元）</label>
										<div class="layui-input-inline">
											<input type="text"
												value="${contractExt.contractExtInvest.outAfterDownAmount}"
												style="border: 0px;" readonly="readonly" class="layui-input" />
										</div>
									</div>
								</div>
							</fieldset>
							<fieldset class="layui-elem-field layui-field-title fieldset"
								style="text-align: center; cursor: default;">
								<div style="padding-top: 15px;">&nbsp;</div>
								<div class="layui-form-item"></div>
								<div class="contract-list">
									<c:forEach items="${contractExt.contractExtSubVos }"
										var="detail" varStatus="subStatus">
										<div class="layui-row" id="{0}">
											<div class="layui-form-item tg-l">
												<div class="layui-inline">
													<label class="layui-form-label">子项名称</label>
													<div class="layui-input-inline">
														<input type="text" value="${detail.subName}"
															style="border: 0px;" readonly="readonly"
															class="layui-input" />
													</div>
												</div>
												<div class="layui-inline">
													<label class="layui-form-label">对内下浮率（%）</label>
													<div class="layui-input-inline">
														<input type="text" value="${detail.inDownRates}"
															style="border: 0px;" readonly="readonly"
															class="layui-input" />
													</div>
												</div>
											</div>
											<div class="contract-box">
												<div class="contract-money">
													<table class="layui-table">
														<colgroup>
															<col width="90">
															<col width="200">
															<col width="200">
															<col width="200">
															<col width="200">
														</colgroup>
														<tbody>
															<tr>
																<td></td>
																<td>子项小计</td>
																<td>${detail.outPreDownAmount}
																<td>${detail.outPreDownRate}
																<td>${detail.outAfterDownAmount}</td>
															</tr>
														</tbody>
														<tbody>
															<tr>
																<th>序号</th>
																<th>费用类型</th>
																<th>对外下浮前金额（元）</th>
																<th>对外下浮率（%）</th>
																<th>对外下浮后金额（元）</th>
															</tr>
														</tbody>
														<tbody>
															<c:forEach items="${detail.contractExtDetails }"
																var="sub" varStatus="subStatus">
																<tr>
																	<td><span class="label">${sub.orderIdx }</span></td>
																	<td class=tg-c><c:if
																			test="${fn:indexOf(sub.orderIdx,'.') == -1 }">
																			<b>${sub.typeName }</b>
																		</c:if> <c:if test="${fn:indexOf(sub.orderIdx,'.') != -1 }">${sub.typeName }</c:if></td>
																	<td>${sub.outPreDownAmount}</td>
																	<td>${sub.outPreDownRate}</td>
																	<td>${sub.outAfterDownAmount}</td>
																</tr>
															</c:forEach>
														</tbody>
													</table>
												</div>
											</div>
										</div>
									</c:forEach>
								</div>
							</fieldset>				
						</div>
					</div>
				</div>

				<div class="layui-form-item"
					style="position: fixed ! important; right: 30px; bottom: 45%; z-index: 10000;">
					<div class="layui-input-block">
						<button
							class="layui-btn layui-bg-blue layui-btn-normal layui-btn-lg  layui-btn-radius"
							type="button" lay-submit lay-filter="addInfo_form_submit"
							id="addInfo_form_submit">
							<i class="layui-icon layui-icon-ok layuiadmin-button-btn"></i> 提交
						</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</body>
</html>
<script type="text/javascript"  >
	var proName;
	var proNameid;
	//静态资源路径前缀
	var staticPath = '${fileHttpPre}';
	var stateJSON = <infopub:dicJson groupNo="A00010028" />;

	layui
			.config({
				base : '${ctx}/resources/layuiadmin/' //静态资源所在路径
			})
			.extend({
				index : 'lib/index' //主入口模块
			})
			.use(
					[ 'index', 'set', 'upload', 'element', 'laydate' ],
					function() {

						var $ = layui.$, form = layui.form, element = layui.element, laydate = layui.laydate, upload = layui.upload;
						// 正则校验
						form.verify({
							//验证汉字
						    CHS:[
						    	/^[\u0391-\uFFE5]+$/
						    	,'只能输入汉字'
						  	],
						  	//名字校验
						  	COC: [
								/^[\u4e00-\u9fa5_a-zA-Z0-9]+$/
								,'请输入正确的名称'
						  	],
						  	//大于0的正整数
						  	intNumber:[
								/^[1-9]\d*$/
								,'请输入正确的数字'
						  	],
						  	//数字只能有两位小数
						  	floatNumber:[
								/^([-]?)([0-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
								,'请输入正确的数字'
						  	],
						  	telNumber:[/^[1][3,4,5,7,8,9][0-9]{9}$/
								  		,'请输入正确的号码'
							],
						  	//数字大于0，并只能有两位小数
						  	floatAmount:[
								/^([0-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/
								//var pattern=/^((\d+\.\d*[1-9]\d{1})|(\d*[1-9]\d*\.\d{2}))$/; 
								,'请输入正确的数字'
						  	]
						});
						element.on('tab(docDemoTabBrief)', function(data) {
					    });
						var fileFormatWord = 'application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document';
						var fileFormatPdf = 'application/pdf';
						var fileFormat = 'application/zip,application/x-rar-compressed,image/jpeg,image/png,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/pdf';
						uploadRender(1, upload,fileFormatWord, $);
						uploadRender(2, upload,fileFormatPdf, $);
						uploadRender(3, upload,fileFormat, $);
						uploadRender(4, upload,fileFormat, $);
						laydate.render({
							elem : '#id_successionAgreementDate',
							trigger : 'click'
						});
						laydate.render({
							elem : '#id_completionDateOfConstructionAndinstallation',
							trigger : 'click'
						});
						laydate.render({
							elem : '#id_operationEndDate',
							trigger : 'click'
						});
						checkValueVerifycontractCommencementDate(laydate, $);						
 						
						//是否与项目合同信息一致监听
						form.on('select(is-it-consistent)', function(data) {
							var id = data.value;
							
							if(id=='1'){
								$("#add_from-bisModify").attr("disabled",'disabled');
								$("#id_format").attr("disabled",'disabled');
								$("#id_is_in_store").attr("disabled",'disabled');
								var backCheckbox = $("input[name=backMechName]");
								backCheckbox.each(function(){
						        	$(this).attr("disabled",'disabled');
						         	form.render();
						         })
						        $("#id_contractCommencementDate").attr("disabled",'disabled');
								$("#id_completionDateOfConstructionAndinstallation").attr("disabled",'disabled');
								$("#id_operationEndDate").attr("disabled",'disabled');
								$("#id_priceAdjustmentMethod").attr("readOnly",'true');	
								$("#id_Contractconstructionperiodyear").attr("readOnly",'true');
								$("#id_Contractoperationperiodyear").attr("readOnly",'true');
								$("#id_Totalcontractperiodyear").attr("readOnly",'true');
								$("#bankFundId").attr("readOnly",'true');
								$("#selfFundId").attr("readOnly",'true');
								$("#gdFundId").attr("readOnly",'true');
								$("#selfBackRateId").attr("readOnly",'true');
								$("#buildCapRateId").attr("readOnly",'true');
								$("#bankBackRateId").attr("readOnly",'true');
								$("#perOmFeeId").attr("readOnly",'true');
								$("#cashRateId").attr("readOnly",'true');
								$("#investBackRateId").attr("readOnly",'true');
								$("#perBottomOmIncomeId").attr("readOnly",'true');
								$("#perBottomOmCostId").attr("readOnly",'true');
								$("#bankFundPercentId").attr("readOnly",'true');
								$("#selfFundPercentId").attr("readOnly",'true');
								$("#gdFundPercentId").attr("readOnly",'true');
								$("#buildKpiMemoId").attr("readOnly",'true');
								$("#omKipMemoId").attr("readOnly",'true');
								$("#mainMemoId").attr("readOnly",'true');
								$("textarea[name=formulaMemos]").each(function(){
						        	$(this).attr("readOnly",'true');
						         	form.render();
						         })
								$("textarea[name=paraMemos]").each(function(){
						        	$(this).attr("readOnly",'true');
						         	form.render();
						         })
								
								$("#1-upload-more-list").attr("readOnly",'true');
								$("#2-upload-more-list").attr("readOnly",'true');
								$("#3-upload-more-list").attr("readOnly",'true');
								$("#4-upload-more-list").attr("readOnly",'true');
								
							}else if(id=='2'){
								$("#add_from-bisModify").removeAttr("disabled");
								$("#id_format").removeAttr("disabled");
								$("#id_is_in_store").removeAttr("disabled");
								var backCheckbox = $("input[name=backMechName]");
								backCheckbox.each(function(){
						        	$(this).removeAttr("disabled");
						         	form.render();
						         })
								$("#id_contractCommencementDate").removeAttr("disabled");
								$("#id_completionDateOfConstructionAndinstallation").removeAttr("disabled");
								$("#id_operationEndDate").removeAttr("disabled");
								$("#id_priceAdjustmentMethod").removeAttr("readOnly");
								$("#id_Contractconstructionperiodyear").removeAttr("readOnly");
								$("#id_Contractoperationperiodyear").removeAttr("readOnly");
								$("#id_Totalcontractperiodyear").removeAttr("readOnly");
								$("#bankFundId").removeAttr("readOnly");
								$("#selfFundId").removeAttr("readOnly");
								$("#gdFundId").removeAttr("readOnly");
								$("#selfBackRateId").removeAttr("readOnly");
								$("#buildCapRateId").removeAttr("readOnly");
								$("#bankBackRateId").removeAttr("readOnly");
								$("#perOmFeeId").removeAttr("readOnly");
								$("#cashRateId").removeAttr("readOnly");
								$("#investBackRateId").removeAttr("readOnly");
								$("#perBottomOmIncomeId").removeAttr("readOnly");
								$("#perBottomOmCostId").removeAttr("readOnly");
								$("#bankFundPercentId").removeAttr("readOnly");
								$("#selfFundPercentId").removeAttr("readOnly");
								$("#gdFundPercentId").removeAttr("readOnly");
								$("#buildKpiMemoId").removeAttr("readOnly");
								$("#omKipMemoId").removeAttr("readOnly");
								$("#mainMemoId").removeAttr("readOnly");
								$("textarea[name=formulaMemos]").each(function(){
						        	$(this).removeAttr("readOnly");
						         	form.render();
						         })
								$("textarea[name=paraMemos]").each(function(){
						        	$(this).removeAttr("readOnly");
						         	form.render();
						         })
								$("#1-upload-more-list").removeAttr("readOnly");
								$("#2-upload-more-list").removeAttr("readOnly");
								$("#3-upload-more-list").removeAttr("readOnly");
								$("#4-upload-more-list").removeAttr("readOnly");
								
							}
						});
						
						form.on('submit(addInfo_form_submit)',function (data) {
		                	$("#addInfo_form_submit").removeAttr("lay-submit").removeClass("layui-bg-blue").addClass("layui-btn-disabled");
		                	$("#add_from-bisModify").removeAttr("disabled");
		                	$("#id_format").removeAttr("disabled");
		                	$("#id_is_in_store").removeAttr("disabled");
		                	$("#id_contractCommencementDate").removeAttr("disabled");
		                	$("#id_completionDateOfConstructionAndinstallation").removeAttr("disabled");
		                	$("#id_operationEndDate").removeAttr("disabled");
		              	
		                	var backCheckbox = $("input[name=backMechName]");//回报机制
		                	 backCheckbox.each(function(){
						        $(this).removeAttr("disabled");						         
						     })	
						     form.render();
		                	var backMech = [];
		                	$("input:checkbox[name='backMechName']:checked").each(function(i){
		                		backMech.push($(this).val());
		                	});
					       $("#id_backMech").val(backMech.toString());
		                	
		              		layer.load();
		                   	//提交 Ajax 成功后，静态更新表格中的数据
		                   	
		                   	$.ajax({
		                       	type : 'post',
		            			url : basePath + '/contractExt/save',
		                       	data: $('#addInfo_form').serialize(),
		            			success:function(result){
		            				if(result.success){
		            					layer.closeAll('loading'); //关闭loading
		            					layer.msg('提交单据成功~',{icon: 1});
		            					//两秒后关闭当前页面
		            					setTimeout(function(){
		            						/**
		            						 * 查找父菜单，并刷新
		            						 */
		            						var topDoc = $(window.top.document);
		            						var path = basePath + '/contractExt/list';
		            						// 获取页面名称
		            						var name = topDoc.find(".layui-nav-item [lay-href^='" + path + "']").text();
		            						if(name == '' || name == null){
		            							name = '承继协议原合同';
		            						}
		            						window.parent.layui.index.openTabsPage(path, name);
		            						var iframe = window.parent.layui.admin.tabsBody(window.parent.layui.admin.tabsPage.index).find(".layadmin-iframe");
		            						iframe[0].contentWindow.location.reload(true);
		            						
		            						/**
		            						 * 关闭当前页
		            						 */
		            						var currPath = basePath + '/contractExt/toCopy';
		            						var layid = topDoc.find("li[lay-id^='" + currPath + "']").attr('lay-id');
		            						window.parent.layui.element.tabDelete('layadmin-layout-tabs', layid);//关闭当前页
		            				        }, 2000);
		            				}else{
		            					layer.closeAll('loading'); //关闭loading
		              					$("#addInfo_form_submit").removeClass("layui-btn-disabled").addClass("layui-bg-blue").attr("lay-submit","");
		            					layer.msg(result.msg,{icon: 7});
		            			  	}
		            			}
		                   	});

		                });
					});

	
	var uploadRender = function(id, upload,fileFormat, $) {
		upload
				.render({
					elem : '#' + id + '-upload-more',
					url : basePath + '/contractExt/uploadAtt/',
					data : {
						types : id
					},
					multiple : true,
					accept : 'file',
					acceptMime : fileFormat,
					before : function(obj) {
						layer.load();
					},
					done : function(res) {
						if (res.code > 0) {
							layer.closeAll('loading');
							return layer.msg(res.msg, {
								icon : 7
							});
						}
						if (res.entity != null && res.entity.length > 0) {
							for ( var i in res.entity) {
								var preProject = res.entity[i];
								var arr = preProject.split("|");
								var imgSrc = "";
								var suffix = arr[1].substring(arr[1]
										.lastIndexOf(".") + 1, arr[1].length);
								if (suffix == 'jpg' || suffix == 'png') {
									imgSrc = "${fileHttpPre}/" + arr[3];
								} else {
									imgSrc = "${ctx}/resources/images/"
											+ suffix + ".jpg";
								}
								$('#' + id + '-upload-more-list')
										.append(
												'<div class="layui-upload-img-div" id="upload_img_'+arr[2]+'"><img src="'+imgSrc+'" title="'+ arr[1] +'" class="layui-upload-img"><div class="mask"><a href="javascript:void(0)" onclick="showImg(\''
														+ "${fileHttpPre}"
														+ arr[3]
														+ '\');">查看</a><a href="javascript:void(0)" onclick="del(\''
														+ arr[2]
														+ '\')";>删除</a></div><p>'
														+ arr[1]
														+ '</p><input type="hidden" value="'+preProject+'" id="fileAtt_'+arr[2]+'" name="fileAtts'+id+'" ></input></div>');
							}
						}
					},
					allDone : function(obj) {
						layer.closeAll('loading');
					},
					error : function() {
						layer.closeAll('loading');
						layer.msg("上传失败，请稍后再试~", {
							icon : 7
						});
					}
				});
	}
	//删除文件
	function del(index) {
		layui.$("#fileAtt_" + index).remove();
		layui.$("#upload_img_" + index).remove();
	}

	//根据url查看文件
	function showImg(url) {
		var openWin = window.open(url,'','left=410,height=768, width=1024, top=200,  toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
	}

	//合同开工日期
	function checkValueVerifycontractCommencementDate(laydate, $) {
		var Data_id_contractCommencementDate = laydate
				.render({
					elem : '#id_contractCommencementDate',
					trigger : 'click',
					done : function(value, date) {
						var valueContractconstructionperioddays = $(
								"#id_Contractconstructionperioddays").attr(
								"value");//合同建设期（天）
						var valueTotalcontractperioddays = $(
								"#id_Totalcontractperioddays").attr("value");//总合同期（天）
						var rgx = /^([-]?)([0-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;
						
						if (rgx.test(valueContractconstructionperioddays)) {//'请输入正确数字，且保留两位小数！'
							var nextday1 = addDate(value,
									valueContractconstructionperioddays);
							$("#id_completionDateOfConstructionAndinstallation")
									.attr("value", nextday1);//建安竣工日期
						}
						if (rgx.test(valueTotalcontractperioddays)) {//'请输入正确数字，且保留两位小数！'
							var nextday2 = addDate(value,
									valueTotalcontractperioddays);
							$("#id_operationEndDate").attr("value", nextday2);//运营结束日期
						}
						
					}
				});
	}

	/**
	 * [dateAddDays 从某个日期增加n天后的日期]
	 * @param  {[string]} dateTemp  [日期字符串]
	 * @param  {[int]} days [增加的天数]
	 * @return {[string]}[增加n天后的日期字符串]
	 */
	 function addDate(dateTemp, days) {
	    var nDate = new Date(dateTemp);
	    var millSeconds = Math.abs(nDate) + (days * 24 * 60 * 60 * 1000);
	    var rDate = new Date(millSeconds);
	    var year = rDate.getFullYear();
	    var month = rDate.getMonth() + 1;
	    month = month < 10 ? "0"+month : month;
	    var date = rDate.getDate();
	    date = date < 10 ? "0"+date : date;
	    return (year + "-" + month + "-" + date);
	}
	// 请输入正确数字，且保留两位小数！
	function checkValueverifyNumber2(obj) {
		var $ = layui.$, form = layui.form
		if (obj.value == '' || obj.value == null) {
			return;
		}
		var rgx = /^([-]?)([0-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;

		var boolrgx = rgx.test(obj.value);// true 
		var periodDays = parseFloat(obj.value)*365;
		//判断合同建设期是否有小数点，有则需加一天
		if(parseFloat(periodDays) > parseFloat((periodDays+"").split(".")[0])){
			periodDays = parseFloat((periodDays+"").split(".")[0]) + 1;
		}
		if (boolrgx) {
			if (obj.id == "id_Contractconstructionperiodyear") {//合同建设期（年）				
				$("#id_Contractconstructionperioddays").attr("value",periodDays);//合同建设期（天）
			} else if (obj.id == "id_Contractoperationperiodyear") {//合同运营期（年）
				$("#id_Contractoperationperioddays").attr("value",periodDays);//合同运营期（天）
			} else if (obj.id == "id_Totalcontractperiodyear") {//总合同期（年）
				$("#id_Totalcontractperioddays").attr("value", periodDays);//总合同期（天）
			}
		} else {
			obj.value =0;
			layer.msg('请输入正确数字，且保留两位小数！');
		}
	}
	//'请输入正确数字，且保留两位小数！'
	function isNumberAndFloat1(str) {
		var $ = layui.$, form = layui.form
		if (str.value == '' || str.value == null) {
			return;
		}
		var rgx = /^([-]?)([0-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;

		var boolrgx = rgx.test(str.value);// true 
		if (boolrgx) {
			return true;
		} else {
			str.value =0;
			return false;
		}
	}
	//'请输入正确数字，且保留两位小数！'
	function isNumberAndFloat2(str) {
		var rgx = /^([-]?)([0-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;

		var boolrgx = rgx.test(str);// true 
		if (boolrgx) {
			return true;
		} else {
			return false;
		}
	}
	function Format(datetime,fmt) {
        if (parseInt(datetime)==datetime) {
            if (datetime.length==10) {
                datetime=parseInt(datetime)*1000;
            } else if(datetime.length==13) {
                datetime=parseInt(datetime);
            }
        }
        datetime=new Date(datetime);
        var o = {
            "M+" : datetime.getMonth()+1,                 //月份
            "d+" : datetime.getDate(),                    //日
            "h+" : datetime.getHours(),                   //小时
            "m+" : datetime.getMinutes(),                 //分
            "s+" : datetime.getSeconds(),                 //秒
            "q+" : Math.floor((datetime.getMonth()+3)/3), //季度
            "S"  : datetime.getMilliseconds()             //毫秒
        };
        if(/(y+)/.test(fmt))
            fmt=fmt.replace(RegExp.$1, (datetime.getFullYear()+"").substr(4 - RegExp.$1.length));
        for(var k in o)
            if(new RegExp("("+ k +")").test(fmt))
                fmt = fmt.replace(RegExp.$1, (RegExp.$1.length==1) ? (o[k]) : (("00"+ o[k]).substr((""+ o[k]).length)));
        return fmt;
	}
	function isNumberAndFloat3(){
		var $ = layui.$
		var rgx = /^([0-9](\d+)?(\.\d{1,2})?$)|(^\d\.\d{1,2}$)/;
		var bankFund = $("#bankFundId").val();
		var selfFund = $("#selfFundId").val();
		var gdFund = $("#gdFundId").val();
		
		if(bankFund ==''||bankFund ==null){
			bankFund = 0;
			$("#bankFundId").val(0);
		}
		if(rgx.test(bankFund)==false){
			$("#bankFundId").val(0);
			layer.msg('请输入正确数字，且保留两位小数！');
		}
		if(selfFund ==''||selfFund ==null){
			selfFund = 0;
			$("#selfFundId").val(0);
		}
		if(rgx.test(selfFund)==false){
			$("#selfFundId").val(0);
			layer.msg('请输入正确数字，且保留两位小数！');
		}
		if(gdFund ==''||gdFund ==null){
			gdFund = 0;
			$("#gdFundId").val(0);
		}
		if(rgx.test(gdFund)==false){
			$("#gdFundId").val(0);
			layer.msg('请输入正确数字，且保留两位小数！');
		}		
		if(bankFund==0&&selfFund==0&&gdFund==0){
			$("#bankFundPercentId").val(0);
			$("#selfFundPercentId").val(0);
			$("#gdFundPercentId").val(0);
		}else{
			var total = parseFloat(bankFund) +  parseFloat(selfFund) + parseFloat(gdFund);
			var bankFundPercent = (bankFund/total)*100;
			var selfFundPercent = (selfFund/total)*100;
			var gdFundPercent = (gdFund/total)*100;
			
			if(bankFund==0&&selfFund==0&&gdFund!=0){
				$("#bankFundPercentId").val(0);
				$("#selfFundPercentId").val(0);
				$("#gdFundPercentId").val(gdFundPercent.toFixed(2));	
			}else if(selfFund==0&&gdFund==0&&bankFund!=0){
				$("#selfFundPercentId").val(0);
				$("#gdFundPercentId").val(0);
				$("#bankFundPercentId").val(bankFundPercent.toFixed(2));
			}else if(bankFund==0&&gdFund==0&&selfFund!=0){
				$("#bankFundPercentId").val(0);
				$("#gdFundPercentId").val(0);
				$("#selfFundPercentId").val(selfFundPercent.toFixed(2));
			}else if(bankFund==0&&selfFund!=0&&gdFund!=0){
				$("#bankFundPercentId").val(0);
				$("#selfFundPercentId").val(selfFundPercent.toFixed(2));
				$("#gdFundPercentId").val(gdFundPercent.toFixed(2));
			}else if(selfFund==0&&bankFund!=0&&gdFund!=0){
				$("#selfFundPercentId").val(0);
				$("#bankFundPercentId").val(bankFundPercent.toFixed(2));
				$("#gdFundPercentId").val(gdFundPercent.toFixed(2));
			}else if(gdFund==0&&bankFund!=0&&selfFund!=0){
				$("#gdFundPercentId").val(0);
				$("#selfFundPercentId").val(selfFundPercent.toFixed(2));
				$("#bankFundPercentId").val(bankFundPercent.toFixed(2));			
			}else{
				$("#bankFundPercentId").val(bankFundPercent.toFixed(2));
				$("#selfFundPercentId").val(selfFundPercent.toFixed(2));
				$("#gdFundPercentId").val(gdFundPercent.toFixed(2));			
			}
		}
	}
</script>